package cn.iocoder.an.module.business.dal.mysql.dataCollection;

import java.util.*;

import cn.iocoder.an.framework.common.pojo.PageResult;
import cn.iocoder.an.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.an.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.an.module.business.dal.dataobject.dataCollection.DevInfoDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.an.module.business.controller.admin.dataCollection.vo.*;

/**
 * 设备台账 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface DevInfoMapper extends BaseMapperX<DevInfoDO> {

    default PageResult<DevInfoDO> selectPage(DevInfoPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<DevInfoDO>()
                .likeIfPresent(DevInfoDO::getDevid, reqVO.getDevid())
                .likeIfPresent(DevInfoDO::getDevname, reqVO.getDevname())
                .orderByDesc(DevInfoDO::getDevid));
    }

}